import { Navigate } from "react-router-dom";
import { lazy,Suspense } from "react";
import Loading from "../component/Loading/Loading"
let NotFound = lazy(() => import("../view/NotFound/NotFound"))
let SignPending =lazy(()=>import('../view/Index/Sign/SignPending'))
let SignRecord =lazy(()=>import('../view/Index/Sign/SignRecord'))
let SignDetail =lazy(()=>import('../view/Index/Sign/SignDetail'))
let SignEdit =lazy(()=>import('../view/Index/Sign/SignEdit'))
let RecordDetail =lazy(()=>import('../view/Index/Sign/RecordDetail'))
let RecordEdit =lazy(()=>import('../view/Index/Sign/RecordEdit'))



let Signing: any = [
    {path:'/index/sign-pending',element:<Suspense fallback={<Loading/>}><SignPending/></Suspense>},
    {path:'/index/sign-record',element:<Suspense fallback={<Loading/>}><SignRecord/></Suspense>},
    {path:'/index/sign-detail',element:<Suspense fallback={<Loading/>}><SignDetail/></Suspense>},
    {path:'/index/sign-edit',element:<Suspense fallback={<Loading/>}><SignEdit/></Suspense>},
    {path:'/index/record-detail',element:<Suspense fallback={<Loading/>}><RecordDetail/></Suspense>},
    {path:'/index/record-edit',element:<Suspense fallback={<Loading/>}><RecordEdit/></Suspense>}
]
export default Signing